Query mongodb collection as dynamic

39

Query mongodb collection as dynamic -

# You can use the string-based syntax, since the expression doesn't offer any advantages with dynamic anyway:

var cursor = db.GetCollection<dynamic>("foo")
               .Find(Builders<dynamic>.Filter.Eq("_id", someId));

Comments

Submit
0 Comments